package com.aier.user.entity;


import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "user", catalog = "abc", uniqueConstraints = @UniqueConstraint(columnNames = "account"))
public class User implements java.io.Serializable {

    private Long uid;                    //用户id
    private String account;                //账号
    private String pwd;                    //密码    
    private String nickname;            //昵称
    private String realname;            //真实姓名
    private String phone;                //手机号(不是孩子账号时不能为空)
    private String email;                //邮箱    
    private Integer city_id;            //所在地区id
    private String address;                //具体地址
    private Date birthday;                //生日
    private String sex;                    //性别
    private String desinfo;                //个人简介
    private String constellation;        //星座
    private String interest;            //爱好
    private String headimg;                //头像图片名
    private Short isbaby;                //是否为孩子(孩子账号不给登陆) 1:是,0:否
    private String phone_imei;            //手机唯一标识
    private String coverimg;            //个人主页封面
    private String appUid;
    
    private String remark;              //备注名
    

    //扩展
    // 关注的数量
    private Integer cfollow;
    // 粉丝的数量
    private Integer cfans;
    // 新鲜事的数量
    private Integer cfresh;
    // 关注状态：1已关注；2互相关注;
    private Short state;
    
    // 关系(宝宝同班，宝宝同校)
    private String relation;
    // 共同关注
    private List<User> commonFollow;
    
    private Integer idenProxy;
    private List<String[]> idenPL;
    private String baby_className;        //宝宝所在班级名
    private Long baby_classId;            //宝宝所在班级id
    
    // 是否购买家校联系薄服务（日期 正常使用，1未购买，2服务过期）
    private String edate;
    

    // Constructors

    /** default constructor */
    public User() {
    }

    public User(String account, String pwd, String nickname, String phone) {
        super();
        this.account = account;
        this.pwd = pwd;
        this.nickname = nickname;
        this.phone = phone;
    }

    public User(Long uid, String nickname,
            String realname, String email, Integer city_id,
            String address, Date birthday, String sex, String desinfo,
            String constellation, String interest) {
        super();
        this.uid = uid;
        this.nickname = nickname;
        this.realname = realname;
        this.email = email;
        this.city_id = city_id;
        this.address = address;
        this.birthday = birthday;
        this.sex = sex;
        this.desinfo = desinfo;
        this.constellation = constellation;
        this.interest = interest;
    }


    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getCity_id() {
        return city_id;
    }

    public void setCity_id(Integer city_id) {
        this.city_id = city_id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDesinfo() {
        return desinfo;
    }

    public void setDesinfo(String desinfo) {
        this.desinfo = desinfo;
    }

    public String getConstellation() {
        return constellation;
    }

    public void setConstellation(String constellation) {
        this.constellation = constellation;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public Short getIsbaby() {
        return isbaby;
    }

    public void setIsbaby(Short isbaby) {
        this.isbaby = isbaby;
    }

    public String getPhone_imei() {
        return phone_imei;
    }

    public void setPhone_imei(String phone_imei) {
        this.phone_imei = phone_imei;
    }

    public Integer getCfollow() {
        return cfollow;
    }

    public void setCfollow(Integer cfollow) {
        this.cfollow = cfollow;
    }

    public Integer getCfans() {
        return cfans;
    }

    public void setCfans(Integer cfans) {
        this.cfans = cfans;
    }

    public Integer getCfresh() {
        return cfresh;
    }

    public void setCfresh(Integer cfresh) {
        this.cfresh = cfresh;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public List<User> getCommonFollow() {
        return commonFollow;
    }

    public void setCommonFollow(List<User> commonFollow) {
        this.commonFollow = commonFollow;
    }

    public Integer getIdenProxy() {
        return idenProxy;
    }

    public void setIdenProxy(Integer idenProxy) {
        this.idenProxy = idenProxy;
    }

    public List<String[]> getIdenPL() {
        return idenPL;
    }

    public void setIdenPL(List<String[]> idenPL) {
        this.idenPL = idenPL;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public String getBaby_className() {
        return baby_className;
    }

    public void setBaby_className(String baby_className) {
        this.baby_className = baby_className;
    }

    public Long getBaby_classId() {
        return baby_classId;
    }

    public void setBaby_classId(Long baby_classId) {
        this.baby_classId = baby_classId;
    }

    public String getCoverimg() {
        return coverimg;
    }

    public void setCoverimg(String coverimg) {
        this.coverimg = coverimg;
    }

    public String getEdate() {
        return edate;
    }

    public void setEdate(String edate) {
        this.edate = edate;
    }

	public String getAppUid() {
		return appUid;
	}

	public void setAppUid(String appUid) {
		this.appUid = appUid;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}